home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / challenge / 12.08-Aug96 / MazeTestCode.sit / MazeTestCode ƒ / Maze.h < prev    next >
Text File  |  1996-07-20  |  918b  |  20 lines

  1. typedef Boolean /* found exit */ (*MoveProc)(
  2.     long xMove,            /* amount of attempted move in x direction(1,0,-1) */
  3.     long yMove,            /* amount of attempted move in y direction(1,0,-1) */
  4.     long zMove,            /* amount of attempted move in z direction (1,0, -1) */
  5.     long *newXPos,    /* new x position after attempted move */
  6.     long *newYPos,    /* new y position after attempted move */
  7.     long *newZPos    /* new y position after attempted move */
  8. );
  9.  
  10. Boolean /* found exit */ Maze(
  11.     long xPos,                         /* x component of initial position */
  12.     long yPos,                         /* y component of initial position */
  13.     long zPos,                         /* z component of initial position */
  14.     long xSize,                         /* size of maze in x dimension */
  15.     long ySize,                         /* size of maze in y dimension */
  16.     long zSize,                         /* size of maze in z dimension */
  17.     MoveProc MakeAMove,    /* callback to attempt a move */
  18.     char *mapStorage            /* one byte for each valid position in the maze */
  19. );
  20.